package com.xgh.design.decorated;

/**
 * @ClassName Test
 * @Description
 * @Author xinggh
 * @Date 2020/8/6 19:36
 * @Version 1.0
 **/
public class Test {

    public static void main(String[] args) {
       /* Shape shape = new Rectangle();
        shape.draw();*/
        ShapeDecorator shapeDecorator = new RedShapeDecorator(new Rectangle());
        shapeDecorator.draw();
    }
}
